{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\charl\Documents\Forecasting\2020 forecasts\pres2020forecast.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Sep 2020, 11:45:54

{com}. use "C:\Users\charl\Documents\Forecasting\2020 forecasts\Pres2020forecast.dta"

. tsset t
{res}{txt}{col 9}time variable:  {res}{col 25}t, 1 to 18
{txt}{col 17}delta:  {res}1 unit

{com}. regress pop2pvot julypop gnpchan

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}        18
{txt}{hline 13}{c +}{hline 34}   F(2, 15)        = {res}    23.90
{txt}       Model {c |} {res}  360.73326         2   180.36663   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 113.209863        15  7.54732419   {txt}R-squared       ={res}    0.7611
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.7293
{txt}       Total {c |} {res} 473.943123        17  27.8790072   {txt}Root MSE        =   {res} 2.7472

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    pop2pvot{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}julypop {c |}{col 14}{res}{space 2} .2637308{col 26}{space 2} .0557995{col 37}{space 1}    4.73{col 46}{space 3}0.000{col 54}{space 4}  .144797{col 67}{space 3} .3826646
{txt}{space 5}gnpchan {c |}{col 14}{res}{space 2} 1.179621{col 26}{space 2} .5237433{col 37}{space 1}    2.25{col 46}{space 3}0.040{col 54}{space 4} .0632887{col 67}{space 3} 2.295953
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 37.50278{col 26}{space 2} 2.439586{col 37}{space 1}   15.37{col 46}{space 3}0.000{col 54}{space 4} 32.30293{col 67}{space 3} 42.70263
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. estat dwatson

{txt}Durbin-Watson d-statistic({res}  3{txt},{res}    18{txt}) = {res} 2.387806

{com}. regress ecvote pop2pvot

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}        18
{txt}{hline 13}{c +}{hline 34}   F(1, 16)        = {res}   223.26
{txt}       Model {c |} {res} 11366.4007         1  11366.4007   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 814.563406        16  50.9102129   {txt}R-squared       ={res}    0.9331
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.9289
{txt}       Total {c |} {res} 12180.9641        17  716.527303   {txt}Root MSE        =   {res} 7.1351

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      ecvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}pop2pvot {c |}{col 14}{res}{space 2} 4.897206{col 26}{space 2} .3277475{col 37}{space 1}   14.94{col 46}{space 3}0.000{col 54}{space 4} 4.202412{col 67}{space 3}    5.592
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-199.4187{col 26}{space 2} 17.12546{col 37}{space 1}  -11.64{col 46}{space 3}0.000{col 54}{space 4} -235.723{col 67}{space 3}-163.1143
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\charl\Documents\Forecasting\2020 forecasts\pres2020forecast.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Sep 2020, 11:47:12
{txt}{.-}
{smcl}
{txt}{sf}{ul off}